#include "protree.h"
#include "ui_protree.h"
#include "protreewidget.h"
#include <QDebug>

ProTree::ProTree(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ProTree)
{
    ui->setupUi(this);
    this->setMinimumWidth(250);
    this->setMaximumWidth(250);
//    this->setMaximumHeight(500);

}

ProTree::~ProTree()
{
    delete ui;
}

void ProTree::SlotAddHeaderToProTree(const QString &name, const QString &path)
{
//    qDebug() << "SlotAddHeaderToProTree " << "name: " << name << endl << "path: " << path;
    ui->treeWidget->AddItemToProTree(name,path);
}
